<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        input[value] {
            color: pink;
        }

        input[type="text"] {
            color: pink;
        }

        /* 选择div，具有class属性，属性值icon开头 */
        div[class^="icon"] {
            color: red;
        }

        section[class$="data"] {
            color: blue;
        }

        div.icon1 {
            color: skyblue;
        }
    </style>
</head>

<body>
    <!-- <input type="text" value="请输入用户名" name="" id="">
    <input type="text"> -->

    <input type="text" name="" id="">
    <input type="password" name="" id="">

    <div class="icon1">小图标1</div>
    <div class="icon2">小图标2</div>
    <div class="icon3">小图标3</div>
    <div class="icon4">小图标4</div>
    <div>我是打酱油的</div>

    <section class="icon1-data">我是安其拉</section>
    <section class="icon2-data">我是哥斯拉</section>
    <section class="icon3-ico">那我是谁</section>
</body>

</html>